home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / UNSPLIT / text0289.txt < prev    next >
Encoding:
Text File  |  1997-02-06  |  616 b   |  22 lines

  1. On Mon, 3 Jun 1996, Anthony Jacques wrote:
  2.  
  3. > Hmm.. One of the lecturers here (on the compiler design/imp. courses) has
  4. > a thing about C... He likes picking holes in it...
  5. > eg. does i+++j (which is valid C) mean:
  6. >     (i++) + j   or   i + (++j)
  7.  
  8. It means (i++) + j, of course. Since ANSI C specifically states that it 
  9. uses l to r maximum fill. Which also means that i+++++j is not legal (it 
  10. would be parsed as i++ ++ + j).
  11.  
  12. Usually, this is the exact same behaviour one gets from a Lex/Yacc 
  13. parser.
  14.  
  15. Best Regads / Elias (who has done several languages using Lex/Yacc)
  16.  
  17. -- 
  18. Elias Martenson
  19. elias@omicron.se
  20.  
  21.